﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace vnCommonGUI
{
    public partial class frmImageDetail : Form
    {
        Image Img;
        public frmImageDetail(Image _Img)
        {
            InitializeComponent();
            Img = _Img;
        }

        private void frmImageDetail_Load(object sender, EventArgs e)
        {
            if(Img!=null) pbImage.Image = Img;
        }

        private void mSaveImage_Click(object sender, EventArgs e)
        {
            if (Img != null) CommonFunction.SaveDialogImageFile(Img);
        }
    }
}
